import {createApp, Directive} from 'vue'
import router from './router/routers'
import 'element-plus/dist/index.css'
import '@/assets/iconfont/iconfont.css'
import '@/assets/iconfont/iconfont.js'
import App from './App.vue'
import {setupStore} from "@/store";
import '@/router/index'
import '@/assets/styles/index.scss'
import "animate.css"

import '@/utils/DateFormat'

const app = createApp(App)
setupStore(app)

app.use(router).mount('#app')

// 自定义指令
import * as directives from "@/extend/directives";

Object.keys(directives).forEach(key => {
    app.directive(key, (directives as { [key: string]: Directive })[key]);
});

import {install} from './components/dynamic'

install(app)

